/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-25 17:00:35
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-25 17:00:40
 */
public class Test_Split {
    public static void main(String[] args) {
        String str = "apple,banana,orange";
        String[] fruits = str.split(",",4);
        for (String fruit : fruits) {
            System.out.println(fruit);
        }
    }
}